name = "itheima is a brand of itcast"
sum = 0
for x in name:
    if x == "a":
        sum += 1

print("%d"% sum)